package com.sword.cases.bridge;

/**
 * 结构型：桥接模式
 * Created by SwordLiu on 2017-05-09.
 */
public class Test {
    public static void main(String[] args) {
        Bridge bridge = new MyBridge();

        SourceAble source1 = new Source1();
        bridge.setSource(source1);
        bridge.method();

        SourceAble source2 = new Source2();
        bridge.setSource(source2);
        bridge.method();

    }
}
